Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.java.swing.undo.AbstractUndoableEdit | +--com.sun.java.swing.text.AbstractDocument.ElementEdit
Fields inherited from class com.sun.java.swing.undo.AbstractUndoableEdit | |
RedoName, UndoName |
Constructor Summary | |
AbstractDocument.ElementEdit(Element e,
int index,
Element[] removed,
Element[] added)
Constructs an edit record. |
Method Summary | |
Element[] | getChildrenAdded()
Gets a list of children that were added. |
Element[] | getChildrenRemoved()
Gets a list of children that were removed. |
Element | getElement()
Returns the underlying element. |
int | getIndex()
Returns the index into the list of elements. |
void | redo()
Redoes a change. |
void | undo()
Undoes a change. |
Methods inherited from class com.sun.java.swing.undo.AbstractUndoableEdit | |
addEdit, canRedo, canUndo, die, getPresentationName, getRedoPresentationName, getUndoPresentationName, isSignificant, redo, replaceEdit, toString, undo |
Methods inherited from class java.lang.Object | |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Constructor Detail |
public AbstractDocument.ElementEdit(Element e, int index, Element[] removed, Element[] added)
e
- the element
index
- the index into the model >= 0
removed
- a set of elements that were removed
added
- a set of elements that were addedMethod Detail |
public Element getElement()
public int getIndex()
public Element[] getChildrenRemoved()
public Element[] getChildrenAdded()
public void redo() throws CannotRedoException
public void undo() throws CannotUndoException
Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |